//
//  BSBAttentionController.m
//  Baisebudejie
//
//  Created by apple on 16/3/15.
//  Copyright © 2016年 youminuo. All rights reserved.
//

#import "BSBAttentionController.h"

@implementation BSBAttentionController
- (void)viewDidLoad
{
    [super viewDidLoad];
    self.view.backgroundColor = BSBBackgoundColor;
    [self setUpBackgroud];
}

#pragma mark - 设置背景内容
- (void)setUpBackgroud
{
//  添加图片
    UIImageView *image = [[UIImageView alloc] init];
    image.bounds = CGRectMake(0, 0, self.view.width * 0.2, self.view.width * 0.2);
    image.center = CGPointMake(self.view.center.x, self.view.height * 0.3);
    image.image = [UIImage imageNamed:@"header_cry_icon"];
    [self.view addSubview:image];
    
    /**
     *  添加文字
     */
    UILabel *label = [[UILabel alloc] init];
    label.text = @"快快登陆吧, 关注百思最in牛人\n好友动态让你过把瘾儿~\n噢耶~~~~!";
    label.textAlignment = NSTextAlignmentCenter;
    label.font = [UIFont systemFontOfSize:20.0];
    label.textColor = [UIColor grayColor];
    label.numberOfLines = 0;
    [label sizeToFit];
    label.center = CGPointMake(self.view.center.x, self.view.center.y - 40);
    [self.view addSubview:label];
    /**
     *  设置登陆按钮
     */
    UIButton *btn = [UIButton buttonWithType:UIButtonTypeCustom];
    UIImage *btnimage = [UIImage imageNamed:@"friendsTrend_login"];
    [btn setBackgroundImage:btnimage forState:UIControlStateNormal];
    [btn setBackgroundImage:[UIImage imageNamed:@"friendsTrend_login_click"] forState:UIControlStateHighlighted];
    [btn setTitle:@"立即登陆/注册" forState:UIControlStateNormal];
    [btn setTitleColor:[UIColor redColor] forState:UIControlStateNormal];
    btn.titleLabel.textAlignment = NSTextAlignmentCenter;
    btn.bounds = CGRectMake(0, 0, btnimage.size.width, btnimage.size.height);
    btn.center = CGPointMake(self.view.center.x, self.view.center.y + 50);
    [self.view addSubview:btn];
}




@end
